<?php
/*
 * 会员登出
 * @arrange Mark
 * @package ixdcw
 * @file    logout.inc.php
 * @time    12-12-19 上午11:47
 */
defined('IN_IXDCW') or exit('Access Denied');
require DT_CORE.'/'.$module.'/common.inc.php';
require_once MD_ROOT.'/member.class.php';
$do = new member;
$do->logout();
Session::start();
session_destroy();
$forward = $forward ? linkurl($forward, 1) : SITE_URL;
$action = 'logout';
$api_msg = $api_url = '';
if($MOD['passport']) {
	include DT_ROOT.'/api/'.$MOD['passport'].'.inc.php';
	if($api_url) $forward = $api_url;
}
if($MOD['sso']) include DT_ROOT.'/api/sso.inc.php';
if($api_msg) Prompt::message($api_msg, $forward, -1);
Prompt::message($api_msg, $forward);
?>